<?php
/**
 * Copyright (C) 2013  Artur Tolstenco
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

class Server_Model_ASPubKey {
	/**
	 * the id of the Authorization Server as seen in the issuer 'iss' parameter of JWT
	 * @var string
	 */
	private $auth_server_id;
	
	/**
	 * the filename of the current authorization server public key
	 * @var string
	 */
	private $pub_key_file;
	
	public function __construct($auth_server_id, $pub_key_file) {
		$this->auth_server_id = $auth_server_id;
		$this->pub_key_file = $pub_key_file;
	}
	
	public function getAuthServerId() {
		return $this->auth_server_id;
	}
	
	public function getPubKeyFile() {
		return $this->pub_key_file;
	}
}

